<%@page contentType="text/html" pageEncoding="UTF-8" import="beans.*, tags.*" %>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"%>
<%@taglib prefix="computershop" uri="/computershop"%>

    <c:set var="componentdetail_xslt">
       <c:import url="componentdetail_xslt.xsl"/>
    </c:set> 
    
<%
    if (request.getParameter("action").equals("detail_hdd")){
%>
    <jsp:useBean id="hdd" class="beans.HDDBean" scope="request">
        Error, the bean should have been created in the servlet!
    </jsp:useBean>
    <x:transform xslt="${componentdetail_xslt}">
       <jsp:getProperty name="hdd" property="xml"/>
    </x:transform>       
<%
   }
%>        
<%
    if (request.getParameter("action").equals("detail_mb")){
%> 
    <jsp:useBean id="motherboard" class="beans.MotherboardBean" scope="request">
        Error, the bean should have been created in the servlet!
    </jsp:useBean>
    <x:transform xslt="${componentdetail_xslt}">
       <jsp:getProperty name="motherboard" property="xml"/>
    </x:transform>
<%
   }
%>   
<%
    if (request.getParameter("action").equals("detail_proc")){
%>
    <jsp:useBean id="processor" class="beans.ProcessorBean" scope="request">
        Error, the bean should have been created in the servlet!
    </jsp:useBean>
    <x:transform xslt="${componentdetail_xslt}">
       <jsp:getProperty name="processor" property="xml"/>
    </x:transform>
<%
   }
%>  
<%
    if (request.getParameter("action").equals("detail_ram")){
%>    
    <jsp:useBean id="ram" class="beans.RAMBean" scope="request">
        Error, the bean should have been created in the servlet!
    </jsp:useBean>
    <x:transform xslt="${componentdetail_xslt}">
       <jsp:getProperty name="ram" property="xml"/>
    </x:transform>
<%
   }
%>  
<%
    if (request.getParameter("action").equals("detail_vc")){
%>        
    <jsp:useBean id="videocard" class="beans.VideocardBean" scope="request">
        Error, the bean should have been created in the servlet!
    </jsp:useBean>
    <x:transform xslt="${componentdetail_xslt}">
       <jsp:getProperty name="videocard" property="xml"/>
    </x:transform>
<%
   }
%> 